import request from '@/utils/request'

// 用户偏好相关接口
export function getHobbyTagsList(params) {
  return request({
    url: `/adm/v1/preference/list`,
    method: 'get',
    params
  })
}
// 获取用户偏好标签详情
export function getHobbyTagDetail(id) {
  return request({
    url: `/adm/v1/preference/details/${id}`,
    method: 'get',
  })
}
// 添加标签
export function addHobbyTag(data) {
  return request({
    url: `/adm/v1/preference/add`,
    method: 'post',
    data
  })
}
// 编辑标签
export function editHobbyTag(data) {
  return request({
    url: `/adm/v1/preference/edit`,
    method: 'put',
    data
  })
}
// 修改状态
export function editHobbyTagStatus(id) {
  return request({
    url: `/adm/v1/preference//update/status/${id}`,
    method: 'put',
  })
}
// 删除
export function deleteHobbyTag(id) {
  return request({
    url: `/adm/v1/preference/delete/${id}`,
    method: 'delete',
  })
}
// 修改排序值
export function editHobbyTagSort(data) {
  return request({
    url: `/adm/v1/preference//update/sort`,
    method: 'put',
    data,
  })
}




// 话题标签列表	GET w/adm/v1//topicTag/list
export function getTopicTagsList(params) {
  return request({
    url: `/adm/v1/topicTag/list`,
    method: 'get',
    params
  })
}
// 添加标签	POST w/adm/v1/topicTag/add
export function addTopicTag(data) {
  return request({
    url: `/adm/v1/topicTag/add`,
    method: 'post',
    data
  })
}
// 编辑一条话题标签	PUT w/adm/v1//topicTag/edit
export function editTopicTag(data) {
  return request({
    url: `/adm/v1/topicTag/edit`,
    method: 'put',
    data
  })
}
// 详情	GET w/adm/v1//topicTag/details/1
export function getTopicTagDetail(id) {
  return request({
    url: `/adm/v1/topicTag/details/${id}`,
    method: 'get',
  })
}
// 修改标签状态	PUT w/adm/v1//topicTag//update/status
export function editTopicTagStatus(data) {
  return request({
    url: `/adm/v1/topicTag/update/status`,
    method: 'put',
    data,
  })
}
// 删除标签	PUT w/adm/v1//topicTag/delete/1
export function deleteTopicTag(id) {
  return request({
    url: `/adm/v1/topicTag/delete/${id}`,
    method: 'delete',
    // data,
  })
}
// 批量修改排序	PUT w/adm/v1//topicTag/update/sort
export function editTopicTagSort(data) {
  return request({
    url: `/adm/v1/topicTag/update/sort`,
    method: 'put',
    data,
  })
}




// 用户偏好相关接口
export function getHotWordsTagsList(params) {
  return request({
    url: `/adm/v1/hotWords/list`,
    method: 'get',
    params
  })
}
// 获取用户偏好标签详情
export function getHotWordsTagDetail(id) {
  return request({
    url: `/adm/v1/hotWords/details/${id}`,
    method: 'get',
  })
}
// 添加标签
export function addHotWordsTag(data) {
  return request({
    url: `/adm/v1/hotWords/add`,
    method: 'post',
    data
  })
}
// 编辑标签
export function editHotWordsTag(data) {
  return request({
    url: `/adm/v1/hotWords/edit`,
    method: 'put',
    data
  })
}
// 修改状态
export function editHotWordsTagStatus(data) {
  return request({
    url: `/adm/v1/hotWords//update/status`,
    method: 'put',
    data,
  })
}
// 删除
export function deleteHotWordsTag(id) {
  return request({
    url: `/adm/v1/hotWords/delete/${id}`,
    method: 'delete',
  })
}
// 修改排序值
export function editHotWordsTagSort(data) {
  return request({
    url: `/adm/v1/hotWords/update/sort`,
    method: 'put',
    data,
  })
}





// 获取推送信息列表	GET m/adm/v1/system/message/list
export function getPullMessageList(params) {
  return request({
    url: `/m/adm/v1/system/message/list`,
    method: 'get',
    params,
  })
}
// 查询详情	GET m/adm/v1/system/message/7
export function getPullMessageDetail(id) {
  return request({
    url: `/m/adm/v1/system/message/${id}`,
    method: 'get',
  })
}
// 添加一条系统消息	POST m/adm/v1/system/message/add
export function addPullMessage(data) {
  return request({
    url: `/m/adm/v1/system/message/add`,
    method: 'post',
    data
  })
}
// 修改一条消息	PUT m/adm/v1/system/message/edit
export function editPullMessage(data) {
  return request({
    url: `/m/adm/v1/system/message/edit`,
    method: 'put',
    data
  })
}
// 修改状态	PUT m/adm/v1/system/message/stop/7
export function updatePullMessageStatus(id) {
  return request({
    url: `/m/adm/v1/system/message/stop/${id}`,
    method: 'put',
  })
}
// 删除	DELETE m/adm/v1/system/message/delete/1
export function deletePullMessage(id) {
  return request({
    url: `/m/adm/v1/system/message/delete/${id}`,
    method: 'delete',
  })
}
// 后台获取对送对象列表	POST m/adm/v1/system/message/send/user/list/7
export function getPullMessageTargetList(id,params) {
  return request({
    url: `/m/adm/v1/system/message/send/user/list/${id}`,
    method: 'get',
    params,
  })
}
// 统计	GET m/adm/v1/system/message/statistics/8
export function getPullMessageStatistics(id,params) {
  return request({
    url: `/m/adm/v1/system/message/statistics/${id}`,
    method: 'get',
    params,
  })
}
//获取链接目标 POST m/adm/v1/system/message/linkTarget/list
export function getLinkTarget() {
  return request({
    url: `/m/adm/v1/system/message/linkTarget/list`,
    method: 'get',
  })
}



// 举报列表	GET w/adm/v1/report/list
export function getReportList(params) {
  return request({
    url: `/adm/v1/report/list`,
    method: 'get',
    params,
  })
}
// 举报详情	GET w/adm/v1/report/details/1
export function getReportDetail(id) {
  return request({
    url: `/adm/v1/report/details/${id}`,
    method: 'get',
  })
}
// 添加举报意见	PUT w/adm/v1/report/add/deal/1
export function addReport(id,data) {
  return request({
    url: `/adm/v1/report/add/deal/${id}`,
    method: 'put',
    data,
  })
}
// 修改举报意见	PUT w/adm/v1/report/update/deal/1
export function updateReport(id,data) {
  return request({
    url: `/adm/v1/report/update/deal/${id}`,
    method: 'put',
    data,
  })
}



// 敏感词
// 敏感词获取	POST /adm/v1/sensitive/list
export function getIllegalWord() {
  return request({
      url: "/adm/v1/sensitive/list",
      method: 'post',
  })
}
// 评论敏感词	POST /adm/v1/sensitive/operation
export function updateIllegalWord(data) {
  return request({
      url: "/adm/v1/sensitive/operation",
      method: 'post',
      data,
  })
}




// 获取图片上传地址和凭证	GET /v1/image/upload/auth
export function getImageUploadAuth(params) {
  return request({
    url: "/v1/image/upload/auth",
    method: 'get',
    params,
  })
}
// 刷新音/视频上传凭证	GET /v1/vod/upload/auth/refresh
export function refreshVodUploadAuth(params) {
  return request({
    url: "/v1/vod/upload/auth/refresh",
    method: 'get',
    params,
  })
}
// 获取音/视频上传地址和凭证	GET /v1/vod/upload/auth
export function getVodUploadAuth(params) {
  return request({
    url: "/v1/vod/upload/auth",
    method: 'get',
    params,
  })
}
// 获取aliyun SDK所需的地区参数 /v1/vod/config
export function getRegionAuth() {
  return request({
    url: "/v1/vod/config",
    method: 'get',
  })
}
//POST 发布一条动态 /adm/v1/video    /v1/video
export function uploadImageOrVideo(data) {
  return request({
    url: "/adm/v1/video",
    method: 'post',
    data,
  })
}
// GET 获取视频播放信息 /v1/vod/play/info
export function getVideoPalyUrl(params) {
  return request({
    url: "/v1/vod/play/info",
    method: 'get',
    params,
  })
}

// GET 获取马甲用户列表 /adm/v1/pico/vest/customer/list
export function getTestCustomerList(params) {
  return request({
    url: "/adm/v1/pico/vest/customer/list",
    method: 'get',
    params,
  })
}







// 意见反馈
// 修改意见反馈	PUT /adm/v1/feedback/edit/status/1
export function updateFeedbackStatus(id) {
  return request({
    url: `/adm/v1/feedback/edit/status/${id}`,
    method: 'put',
  })
}
// 意见列表	GET /adm/v1/feedback/list
export function getFeedbackList(params) {
  return request({
    url: `/adm/v1/feedback/list`,
    method: 'get',
    params,
  })
}
